﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OperatorInCompetence.aspx.cs"
    Inherits="page_OperatorInCompetence" %>

<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../style/css.css" type="text/css" rel="stylesheet" />
    <link href="../style/main.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <br />
    <center>
    <table style="width: 90%; background-color: #85BDE2; vertical-align: top; text-align: center"
        border="0px" cellpadding="0px" cellspacing="1px">
        <tr style="background-color: #DAE7F8;">
            <td colspan="2" align="center" bgcolor="#DAE7F8" style="height:26px;">
                <strong>权限设置</strong>
            </td>
        </tr>
        <tr style="background-color: #DAE7F8;">
            <td style="width: 20%;" align="center" >
                会员列表
            </td>
            <td align="center">
                会员所拥有的组
            </td>
        </tr>
        <tr style="background-color: #DAE7F8;">
            <td style="width: 20%;" align="left" rowspan="3" valign="top">
                <asp:ListBox ID="lbUser" runat="server" AutoPostBack="True" Height="650px" Width="98%"
                    OnSelectedIndexChanged="lbUser_SelectedIndexChanged"></asp:ListBox>
                <br />
                <asp:TextBox ID="tbUserName" runat="server" Width="111px"></asp:TextBox>
                <ShoveWebUI:ShoveConfirmButton ID="btnAdd" runat="server" BackgroupImage="../Images/Admin/buttbg.gif"
                    BorderStyle="None" Height="20px" Text="增加" Width="60px" OnClick="btnAdd_Click" />
            </td>            
            <td align="left" valign="top">
                <asp:DataGrid ID="g" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                    CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                    AllowPaging="True" CssClass="gStyle">
                    <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                    <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                    <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                    </HeaderStyle>
                    <ItemStyle CssClass="gItem" BackColor="White" />
                    <Columns>
                        <asp:TemplateColumn HeaderText="状态" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkGroup" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="Name" HeaderText="组名称" ItemStyle-Width="20%"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Description" HeaderText="组权限描述"></asp:BoundColumn>
                        <asp:BoundColumn DataField="ID" HeaderText="id" Visible="false"></asp:BoundColumn>
                    </Columns>
                    <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                    </PagerStyle>
                </asp:DataGrid>
            </td>
        </tr>               
        <tr style="background-color: #DAE7F8;" valign="top">
            <td align="center">
                会员所拥有的权限
            </td>
        </tr>
        <tr style="background-color: #DAE7F8;" valign="top">
            <td valign="top">
                <asp:DataGrid ID="g1" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                    CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                    AllowPaging="True" CssClass="gStyle" >
                    <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                    <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                    <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                    </HeaderStyle>
                    <ItemStyle CssClass="gItem" BackColor="White" />
                    <Columns>
                        <asp:TemplateColumn HeaderText="状态" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkCompetence" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="Name" HeaderText="权限名称" ItemStyle-Width="20%"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Description" HeaderText="权限功能描述"></asp:BoundColumn>
                        <asp:BoundColumn DataField="ID" HeaderText="id" Visible="false"></asp:BoundColumn>
                    </Columns>
                    <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                        </PagerStyle>
                    </asp:DataGrid>
                    <ShoveWebUI:ShoveGridPager ID="gPager" BorderWidth="0" CssClass="gStyle" BorderStyle="None"
                        runat="server" Width="100%" ShowSelectColumn="False" DataGrid="g1" OnPageWillChange="gPager_PageWillChange"
                        OnSortBefore="gPager_SortBefore" AlternatingRowColor="White" HotColor="White"
                        GuiseColor="False" ClientNavigation="true" PageSize="20" />
            </td>
        </tr>
        <tr style="background-color: #DAE7F8;">
            <td style="background-color: #DAE7F8; text-align: center; height: 26px;" colspan="2">
                <asp:Button ID="btnEdit" runat="server" Height="22px" Text="更新权限" Width="90px" OnClick="btnEdit_Click" OnClientClick="return Check()" />
            </td>
        </tr>
    </table>
    </center>
    </form>
</body>
</html>
